package com.example.juyixia;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baidu.mapapi.model.LatLng;

/**
 * �̵�ʵ����
 * @author SJ   
 *
 */
public class Map_shopInfo implements Serializable {
	private static final long serialVersionUID = -655813652205395361L;
	private double latitude;//商铺纬度
	private double longitude;//商铺经度
	private String name;//�商铺名
	private String discription;//商铺描述
	private int image;//图片
	public static LatLng meetlocation;
	//构造方法
	public Map_shopInfo(double latitude, double longitude, String name,
			String discription,int image) {
		super();
		this.latitude = latitude;
		this.longitude = longitude;
		this.name = name;
		this.discription = discription;
		this.image = image;
	}
	public Map_shopInfo(String location,String name,String discription,int image){
		String[] l = location.split(",");
		this.longitude = Double.parseDouble(l[0]);
		this.latitude = Double.parseDouble(l[1]);
		this.name = name;
		this.discription = discription;
		this.image = image;
	}
	public static List<Map_shopInfo> infos 
	= new ArrayList<Map_shopInfo>();
//	static{
//		infos.add(new Map_shopInfo(29.492085, 106.586814, "李豪", "11111111",R.drawable.shop1));
//		infos.add(new Map_shopInfo(29.496040, 106.573052, "游展豪", "22222222",R.drawable.shop2));
//		infos.add(new Map_shopInfo(29.500700, 106.586779, "齐煜", "33333333",R.drawable.shop3));
//		infos.add(new Map_shopInfo(29.474918, 106.562201, "尚甲", "44444444",R.drawable.shop4));
//	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDiscription() {
		return discription;
	}
	public void setDiscription(String discription) {
		this.discription = discription;
	}
	public int getImage() {
		return image;
	}
	public void setImage(int image) {
		this.image = image;
	}

}
